import request from '@/utils/request'

// 查询跟踪日志列表
export function listWorkLog(query) {
  return request({
    url: '/system/WorkLog/list',
    method: 'get',
    params: query
  })
}

// 读码率汇总
export function listBcrRead(BcrReadquery) {
  return request({
    url: '/system/WorkLog/BcrRead',
    method: 'get',
    params: BcrReadquery
  })
}

// 出口分拣统计
export function listLevelSeorting(LevelSeortingquery) {
  return request({
    url: '/system/WorkLog/LevelSeorting',
    method: 'get',
    params: LevelSeortingquery
  })
}

// 时间段流量汇总
export function listTrafficquery(Trafficqueryquery) {
  return request({
    url: '/system/WorkLog/Trafficquery',
    method: 'get',
    params: Trafficqueryquery
  })
}

// 异常汇总
export function listUnusual(Unusualquery) {
  return request({
    url: '/system/WorkLog/Unusual',
    method: 'get',
    params: Unusualquery
  })
}

// 查询跟踪日志详细
export function getWorkLog(workId) {
  return request({
    url: '/system/WorkLog/' + workId,
    method: 'get'
  })
}

// 新增跟踪日志
export function addWorkLog(data) {
  return request({
    url: '/system/WorkLog',
    method: 'post',
    data: data
  })
}

// 修改跟踪日志
export function updateWorkLog(data) {
  return request({
    url: '/system/WorkLog',
    method: 'put',
    data: data
  })
}

// 删除跟踪日志
export function delWorkLog(workId) {
  return request({
    url: '/system/WorkLog/' + workId,
    method: 'delete'
  })
}

// 导出跟踪日志
export function exportWorkLog(query) {
  return request({
    url: '/system/WorkLog/export',
    method: 'get',
    params: query
  })
}

// 导出异常汇总日志
export function exportUnusual(query) {
  return request({
    // url: '/system/WorkLog/Unusualexport',//88888
    url: '/system/WorkLog/Unusualexport',//88888
    method: 'get',
    params: query
  })
}

//导出格口统计
export function exportLevelSeorting(query) {
  return request({
    // url: '/system/WorkLog/Unusualexport',//88888
    url: '/system/WorkLog/LevelSeortingeExport',//88888
    method: 'get',
    params: query
  })
}

//导出读码率统计
export function exportRead(query) {
  return request({
    // url: '/system/WorkLog/Unusualexport',//88888
    url: '/system/WorkLog/BcrReadExport',//88888
    method: 'get',
    params: query
  })
}
